# 字典是无序的
dict1 = {
    "name": "mia",
    "gender": False
}

# 新增键值对
dict1["height"] = 170
print(dict1)

# 获取键值对
print(dict1['name'])

# 修改键值对
dict1["gender"] = True
print(dict1)

# 判断有没有name这个key
print('name' in dict1)

# 删除
del dict1
